import { AppRouteModule, AppRouteRecordRaw } from "/@ts/router/types";

// export const dashboard:AppRouteRecordRaw =  {
//     path:"/dashboard",
//     name:"dashboard",
//     meta:{
//         title:"仪表盘",
//         icon:"menu"
//     },
//     component: () => import('/@/layouts/index.vue'),
//     children:[

//         ,
//         {
//             path:"workbench",
//             name:"dashboardWorkbench",
            
//             meta:{
//                 title:"工作台",
               
//             },
//             component: () => import('/@/views/dashboard/workbench/workbench.vue'),
//         }
//     ]
// };
const routeComponents : AppRouteRecordRaw[] = [

    {

        path:"/demo",
        name:"demo",
            
        meta:{
            title:"案例演示",
            icon:"school"
        },
        component: () => import('/@/layouts/index.vue'),
        children:[
 
        
            // {
            //     path:"Rich",
            //     name:"demoRich",
                
            //     meta:{
            //         title:"canvas 图标标注",
            //     },
            //     query:{},
            //     component: () => import('/@/components/rich/index.vue'),
            // },
            {
                path:"konvajs",
                name:"demokonvajs",
                
                meta:{
                    title:"canvas 图标标注",
                },
                query:{},
                component: () => import('/@/components/konvajs/index2.vue'),
            },
            {
                path:"index2",
                name:"demokonvajs2",
                
                meta:{
                    title:"konvajs图标标注",
                },
                query:{},
                component: () => import('/@/components/konvajs/index2.vue'),
            },
           
            {
                path:"AntVX6",
                name:"AntVX6",
                meta:{
                    title:"流程图AntV X6",
                   
                },
                component: () => import('/@/components/AntVX6/AntVX6.vue'),
            },
            // {
            //     path:"gaode3D",
            //     name:"gaode3D",
                
            //     meta:{
            //         title:"3D 高德 地球",
            //     },
            //     component: () => import('/@/components/cesium/gaodeMaps.vue'),
            // },
            // {
            //     path:"BingMaps3D",
            //     name:"BingMaps",
                
            //     meta:{
            //         title:"3D BingMaps 地球",
                   
            //     },
            //     component: () => import('/@/components/cesium/BingMaps.vue'),
            // },
            {
                path:"mapDemo1",
                name:"mapDemo1",
                
                meta:{
                    title:"中国地图事件统计",
                   
                },
                component: () => import('/@/components/echarts/mapDemo1.vue'),
            },
            {
                path:"mapDemo2",
                name:"mapDemo2",
                
                meta:{
                    title:"中国地图市场统计图",
                },
                component: () => import('/@/components/echarts/mapDemo2.vue'),
            }
        ]
    },
       {
        path:"/js",
        name:"js",
        
        meta:{
            title:"库",
            icon:"suitcase"
        },
        component: () => import('/@/layouts/index.vue'),
        children:[
            
            {
                
                path:"xlsxToJSON",
                name:"xlsxToJSON",
                meta:{
                    title:"xlsx转JSON",
                   
                },
                component: () => import('/@/views/component/xlsxToJSON.vue'),
            },
            {
                path:"jsonToXlsx",
                name:"jsonToXlsx",
                meta:{
                    title:"json转Xlsx",
                },
                component: () => import('/@/views/component/jsonToXlsx.vue'),
            },
            {
                path:"cookie",
                name:"jsCookie",
                
                meta:{
                    title:"jsCookie",
                   
                },
                component: () => import('/@/views/component/jsCookie.vue'),
            },
        ]
     
    },
    {
        path:"/components",
        name:"components",
        component: () => import('/@/layouts/index.vue'),
        meta:{
            title:"组件库",
            icon:"grid"
        },
        children:[
            {
                path:"wangeditor",
                name:"wangeditorComponents",
                meta:{
                    title:"wangeditor编辑器",
                },
                component: () => import('/@/views/component/wangeditor.vue'),
            },
         
            {
                path:"vditor",
                name:"vditorComponents",
                meta:{
                    title:"Md 编辑器",
                },
                component: () => import('/@/views/component/vditor.vue'),
            },
            {
                path:"vueQr",
                
                name:"vueQrComponents",
                meta:{
                    title:"二维码",
                   
                },
                component: () => import('/@/views/component/vueQr.vue'),
            },
            {
                path:"bingMaps",
                name:"bingMapsComponents",
                
                meta:{
                    title:"bingMaps地图",
                   
                },
                component: () => import('/@/views/component/map/bingMaps.vue'),
            },
            {
                path:"AutoNaviMap",
                name:"AutoNaviMapComponents",
                
                meta:{
                    title:"高德地图",
                   
                },
                component: () => import('/@/views/component/map/AutoNaviMap.vue'),
            },
            {
                path:"SelectsArea",
                name:"SelectsAreaComponents",
                
                meta:{
                    title:"区域选择器",
                },
                component: () => import('/@/views/component/SelectsArea.vue'),
            },
            {
                path:"vueCropper",
                name:"vueCropperComponents",
                meta:{
                    title:"图片裁剪",
                },
                component: () => import('/@/views/component/vueCropper.vue'),
            },
        ]
    },
    {
        path: '/',
        component: () => import('/@/layouts/index.vue'),
        children:[
                {
                    path:"data",
                    name:"data",
                    meta:{
                        title:"数据库",
                        icon:"data-board"
                    },
                    component: () => import('/@/views/component/datas.vue'),
                }
        ]
    },
       {
        path: '/',
        component: () => import('/@/layouts/index.vue'),
        children:[
            {
                path:"README",
                name:"README",
                meta:{
                    title:"关于",
                    icon:"avatar"
                },
                query:{
                    id:1
                },
                component: () => import('/@/views/readme/readme.vue'),
            },
        ]
    },
    {
     path: '/',
     component: () => import('/@/layouts/index.vue'),
     children:[
        {
            path:"partners",
            name:"partners",
            meta:{
                title:"客户案例",
                icon:"management"
            },
            component: () => import('/@/views/readme/partners.vue'),
        },
     ]
 }
]
const routeMenuList: AppRouteRecordRaw[] = [
   
    ...routeComponents,

    // {
    //     path:"/setting",
    //     name:"setting",
    //     meta:{
    //         title:"系统设置",
    //         icon:"Setting"
    //     },

    //     children:[
    //         {
    //             path:"/setting/menu",
    //             name:"settingMenu",
                
    //             meta:{
    //                 title:"菜单管理",
                   
    //             },
    //             query:{},
    //             component: () => import('/@/views/setting/menu/index.vue'),
    //         }
    //         ,
    //         {
    //             path:"/setting/dict",
    //             name:"settingDict",
    //             meta:{
    //                 title:"字典管理",
                   
    //             },
    //             component: () => import('/@/views/setting/dict/index.vue'),
    //         },
    //         {
    //             path:"/setting/dictDetail",
    //             name:"settingDictDetail",
    //             meta:{
    //                 title:"字典数据",
    //                 hideMenu:true,
    //             },
               
    //             component: () => import('/@/views/setting/dict/detail.vue'),
    //         }
    //     ]
    // },
];
export default routeMenuList